<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=no">
    <title>日新网 - 行家</title>
    <link rel="stylesheet" href="__TMPL__Public/assets/css/bootstrap.min.css">
    <link rel="stylesheet" href="__TMPL__Public/assets/css/reset.css">
    <link rel="stylesheet" href="__TMPL__Public/assets/css/style.css">
    <script type="text/javascript" src="__TMPL__Public/assets/js/rem.js"></script>
    <style>
        .question_index .title {
            width: 100%;
            text-align: center;
            margin:0 auto!important;
        }
        .question_index {
            margin-bottom: 0!important;
        }
        .expert_item {
            border-radius: .1rem;
        }
        .col-xs-6 {
            margin-bottom: .2rem;
        }
    </style>
</head>
<body>

<tc_include file="Public:nav"/>
<div class="question_index expert_index comWidth">
    <p class="title">日新行家</p>
</div>
<div class="container">
    <div>
        <div class="expert list_div">
            <volist name="pf_list" id="vo">
                <a href="{:U('user/index/professor_homepage', array('professor_id' => $vo['user_id']))}" class="item_div">
                    <div class="expert_item clearfix">
                        <div class="picture_ground">
                            <img src="{:sp_get_user_avatar_url($vo['avatar'])}" alt="">
                        </div>
                        <div class="text">
                            <p class="name">{$vo.user_nicename|default=$vo['user_login']}</p>
                            <p class="work"><span class="company_name">{$vo.company}</span><span>{$vo.position}</span></p>
                        </div>
                    </div>
                </a>
            </volist>
        </div>
    </div>

    <div style="height: .5rem;line-height: .5rem;background-color: #efdddd;" class="js-infinite-scroll-loading text-center">更多</div>
    <div id="nextpage"></div>
</div>


<!--页脚-->
<tc_include file="Public:footer"/>
<script type="text/javascript" src="__TMPL__Public/assets/js/jquery.1.12.4.js"></script>
<script src="__TMPL__Public/assets/js/bootstrap.min.js"></script>
<script src="__TMPL__Public/assets/js/jquery.infiniteScroll.js"></script>
<script>
    // 加载更多
    $('#nextpage').infiniteScroll({
        loading:'.js-infinite-scroll-loading',
        total_pages:{$total_pages},
        success:function(content){
            var items = $(content).find('.item_div');
            if(items.length > 0){
                $('.list_div').append(items);
            }
        }
    });
</script>
</body>
</html>